package ace.module.common.core.impl.properties;

import ace.module.common.api.enums.FrameworkModeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * module properties.
 *
 * @author Caspar
 */
@RefreshScope
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = ModuleCommonBaseProperties.CONFIG_PREFIX)
public class ModuleCommonBaseProperties {

  public static final String CONFIG_PREFIX = "ace.module.common.base";


  /**
   * 基础架构模式.
   * {@link FrameworkModeEnum}
   */
  private FrameworkModeEnum frameworkMode = FrameworkModeEnum.SINGLE;


}